200 |
Can you add text with links in the event
// AnchorClick event - Occurs when an anchor element is clicked. private void axSchedule1_AnchorClick(object sender, AxEXSCHEDULELib._IScheduleEvents_AnchorClickEvent e) { System.Diagnostics.Debug.Print( e.anchorID.ToString() ); System.Diagnostics.Debug.Print( e.options.ToString() ); } //this.axSchedule1.AnchorClick += new AxEXSCHEDULELib._IScheduleEvents_AnchorClickEventHandler(this.axSchedule1_AnchorClick); axSchedule1.Calendar.Selection = Convert.ToDateTime("6/20/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("6/20/2012 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/20/2012 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).ExtraLabel = "<aID1234;OPTIONS-1234>click me</a>"; var_Events.Add(Convert.ToDateTime("6/20/2012 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/20/2012 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).ExtraLabel = "<a1235;OPTIONS-1235>click me</a>"; |
199 |
How do you adjust the font type and size of the event (method 2)
axSchedule1.Calendar.Selection = Convert.ToDateTime("6/20/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); axSchedule1.DefaultEventShortLabel = "<font mistral;12><%=%256%>"; axSchedule1.DefaultEventLongLabel = axSchedule1.DefaultEventShortLabel; EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("6/20/2012 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/20/2012 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Events.Add(Convert.ToDateTime("6/20/2012 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/20/2012 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); |
198 |
How do you adjust the font type and size of the event (method 1)
axSchedule1.Calendar.Selection = Convert.ToDateTime("6/20/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); EXSCHEDULELib.Events var_Events = axSchedule1.Events; EXSCHEDULELib.Event var_Event = var_Events.Add(Convert.ToDateTime("6/20/2012 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/20/2012 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Event.ShortLabel = "<font tahoma;12><%=%256%>"; var_Event.LongLabel = var_Event.ShortLabel; EXSCHEDULELib.Event var_Event1 = var_Events.Add(Convert.ToDateTime("6/20/2012 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/20/2012 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Event1.ShortLabel = "<fgcolor FF><i><font Mistral;16>your caption</i></font> goes here"; var_Event1.LongLabel = var_Event1.ShortLabel; |
197 |
How can I change the shape of the line to be shown when user drag and drop data over the control
axSchedule1.OLEDropMode = EXSCHEDULELib.exOLEDropModeEnum.exOLEDropManual; axSchedule1.VisualAppearance.Add(1,"C:\\Program Files\\Exontrol\\ExSchedule\\Sample\\EBN\\dash1.ebn"); axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleOLEDropPosition,0x1000000); |
196 |
How can I highlight the date-time from cursor when the user drag and drop data over the control
axSchedule1.OLEDropMode = EXSCHEDULELib.exOLEDropModeEnum.exOLEDropManual; axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleOLEDropPosition,(uint)ColorTranslator.ToWin32(Color.FromArgb(1,0,0))); |
195 |
How can I start drag and drop events
|
194 |
Is it possible to show the today date with a different foreground color
axSchedule1.Calendar.Selection = "month(value) = month(date(``)) and (int((yearday(value) -1- ((7-weekday(value - yearday(value) + 1)) mod 7) )/7) = int((yearday" + "(date(``))-1)/7))"; axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exCalendarMarkToday,axSchedule1.BackColor); axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exCalendarMarkTodayForeColor,(uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0))); |
193 |
How can I hide the rectangle around the today date
|
192 |
Is it possible to change the appearance of event with no status using the EBN (office theme)
axSchedule1.BeginUpdate(); axSchedule1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAEGg4BeoDg6AADACAxRDAMgBQKAAzQFAYaBqGqGAAGKD4JhUAIIRZGMIjFDcEwxC6NIpAWCYRDGEwCQiNQyRDCYYw+GYCJBmKKYcgONYgQLHcgxD" + "IsJw/FyERjjeB4egkaZHRZOUZTZQsBxRAZ2Q4EQAKRpOFY9DTPcr0HR8ZQ+BKNAYkSjQAp2VZUVJFUqDKItVzbBIaRgteA7RrOXpjRjYEBxDKcZyxLqVLToiqcRz7Pqb" + "ZrjeioZoyBI+QjgYAUFDeGSTDQ3bwAA4rEqaaZnVbkOQQJTcNy7EKvYRzGA7CgPHI5QjnVR6BjUJztWyIbp3G4rchqH4RaqAF5ZXg9ez/FIaJbnUaMWhXFqOABwPC0Xo" + "IGuAJklAeR6H2dAngcEZWnQehzCsd4SmGPJzF2Io1l2fhrgeUpxHOLIAggSRAlIYw6B0ThGFyEJ4CEAwQgSV51BkDYQhCIQJHgGp0gAGBFgCB55nAAC3HCbYEGEOBIHO" + "BZhggZgagYIRIHYEoFCGMoSCKCJiEiFgjgaYZjjYGIJiKSI2CeBZiAgXgugyYxIgYNINmIaJaDiDpKEiag8g2Y5on4M4GkqGQWEaEZkgkJhKhEZBJC4ToTmSSBqFCFJk" + "ikNhUhXQpaFiFJlikbhPhcZZpC4GwqmYSYWGaGZmgmJhkhiZopjYboamGKY+HKGhmkmTh2CqZxZl4coeGeKY6HyHxmigbIuiCaBKBaBohmiCgOgKIhokoNoKgaKJqEaC" + "IimkwwuiUKVyBiJk7m6HIiGGMqbCiSwqhaI4pmqComiOKBqiqNouioKpKj6JQsiqapOiuBoqnqZouiwaxahqOooiuSp+j+BpLEsFpGjGbILCaSoxGwSwuk6M5skgapQj" + "SbIrDaVI15AWpYjSbYrG6T43G2a1Ui2bhLhaZo5m6C4mmSOJuiuNpujqYYrj6co6G6S5OnYLZvFuXpyj4b4rjqfI/G7aA7kCcBMBcBpBnCDAPAKQhwkwN1wjCbBHAiQp" + "xCwVI7kVlJHBiRhwlwbzrHGbB/AeBpLlyFI/kmcoMiMJQvHKLIbCeSpyjyEwwkycxMk8LZMDMLIzC+S4LnyVw+kwYYsn8P5KHOPJoj+TnQl8NJSjMPJnEzmR9CMQpUnO" + "SBvESVZ1g0ZwplWNYtHcXZXDWbYHESWA2C2Fxklkdgdh8aJXmGLYvGaBoME2RxylydxNlcdpcGGPZfHqXp3C2M4fIv3sD3ACMETAnALgJF+PAbgPh7jEHiFsXgNgxjyA" + "4I8EoyR5CcFeCEY48huDPBqMsYYXBvg9GUPMDg/wiBjHoD0D4PRpD0G4NdcY8hoDZEqNcewHRHhlGyPYTofwujaHuB0Z4bQGh3C6O9ng9xvAJEqA0TIfgXiNHGPkDznx" + "xD4E8F8To5x8iQGuKEdI+QvBvFSOuKotxYjpGGGYN4vR3j8A+A8Yo8R9jeHeMkeY/QPgsBoGcPonw3jdHuP4D4jxsgNH8F8V47R7D+E+L8eo+A/g/G+PwGYnx1j/D+FA" + "AwAQfhoASAEL4lADiBAePEeowBcANAGGAOgCQhhDCMAoIIWAWgFHAMQDIghEBuAaEEbAPQChgHIB8QgUAxAQGEDgJgNAwgsBOIQJAbUpCoBoIoCAtAJiFGgMEBQwwqBj" + "AWCEYAcwigoCgIAQBAQ=="); axSchedule1.OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exChangePanels | EXSCHEDULELib.OnResizeControlEnum.exHideSplitter; axSchedule1.Calendar.Selection = Convert.ToDateTime("6/27/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); (axSchedule1.GetOcx() as EXSCHEDULELib.Schedule).BodyEventBackColor = 0x1000000; axSchedule1.ShowStatusEvent = false; axSchedule1.set_DefaultEventPadding(EXSCHEDULELib.PaddingEdgeEnum.exPaddingAll,3); axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleCreateEventBackColor,0x1000000); axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleUpdateEventsBackColor,0x1000000); EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("6/27/2012 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/27/2012 12:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).BodyBackColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0)); var_Events.Add(Convert.ToDateTime("6/27/2012 11:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/27/2012 13:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).BodyBackColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0)); axSchedule1.EndUpdate(); |
191 |
Is it possible to change the appearance of event's status using the EBN (office theme)
axSchedule1.BeginUpdate(); axSchedule1.OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exChangePanels | EXSCHEDULELib.OnResizeControlEnum.exHideSplitter; EXSCHEDULELib.Appearance var_Appearance = axSchedule1.VisualAppearance; var_Appearance.Add(1,"gBFLBCJwBAEHhEJAEGg4BKYCg6AADACAxRDAMgBQKAAzQFAYaBqGqGAAGKD4JhUAIIRZGMIjFDcEwxC6NIpAWCYRDEMQ0AJCIzDJCIZBkHCPRjASQZUhmHIDTbIEBxf" + "IMIxLE9IMwxfA8ax1GifI6hGSYDa0HAkABTVQRLL4aSDK6NaYmSL5DhkBokUpGKTpOhgATHMqqIzGURZNquEQ1DBbEI3BaUaw/CKRLAoahqVpqK4tS7MNa3XKkcxzD6e" + "IypGBKAgmQoJDLRGIxTiYACxPQACzsEAKapKUZPRZVNYQJQlNRDLiEcrgOr4DxqO4aWbZViaDZVawlNy5bhtfaqGrfKYJYLrWCTbh0Tz9KzIJJwHbcKxjKrDczjEoSVw" + "iAmSgcGmIxaggHBHFmFpoHEJwbg8FpammO5bEUaxbm6ZwDH+YI7EIQQQhKAYkkYdA6hyDI4ngGRIA8AwQgSV51BkDYQhCIQJHeHAkCAGBFgGR55m8CQBkONkYCEEgxGe" + "BZJHQDgTgWFhFgyf4HmICByBqBRhmiAgmD+YggAIHIJmKSIhGMQJijiNgmgoYwYkoH4NCIWJaC6BhiiiZg2g4CR4moN4LmOWQGEKEAkCibgwg+vwiEeEQjFifhQhMIpZ" + "DoOoViUKJyFGExlDkGhXhcZIZGIXIWiUSIyGKFRmAkPhkheJYZC4bIYmaaYGGmF5mjmSh1hqJwZmIRYdieGZSH2GxnjmahbhoJx5nqAYhigOYaHOIAohiHhniKKBaDIZ" + "YjiiOZCgeJImnoEh/iWKJYk6FYmikehyhOJ4pBqCoZiQKY6gKHYIGmeoiiGKoqDqMoliwKh6FKM4riqOQOjeLYqhqYoxi6K5anKL4visWoSkGMYsDsCo5hKLIbCKS4jm" + "yKp+kyM5qlsRpFiyLB7GKTY2i0Spuk6NItAsfpXjALY7hKXYIk6Wh2CmBphgqOgTjuYhIHachAlAECAg="); var_Appearance.Add(2,"CP:1 0 0 1 0"); var_Appearance.Add(4,"gBFLBCJwBAEHhEJAEGg4BGoDg6AADACAxRDAMgBQKAAzQFAYaBqGqGAAGKD4JhUAIIRZGMIjFDcEwxC6NIpASLoJDCH4mSTHYxyHIMWwtDiBZgkCA4fiGEYnThKM5Sd" + "KsXABG6NErSdDAAoKRIVTjAcsVTicAo+R7TcYgLBNAQHKQAHZDQRKZpuFoRRKJNgDLYUEhqGCyYDseyZNj2GZYRDPVqzWAFFzrFSqLilaYpSh+bpfSRSVI3PakQz+LCN" + "CzwEAKYoaRZDRZgdzUbItMYNBKsMQgO6QAwqNKYQjWVaaFgEYzJMa2LTiHSqQhrGqMQjnV5ZPgVzZKZZGVQ1LBOOZfEJ2XacSqeCyWEqnRryFpWRpfGXiX7EOY7HaePw" + "DAQQhKAaEwZlCahyDKDBjm4a5JAiG5jgyDYhCKDZukYSAYgsLAzh0RBlBqBAkA4Ox+n+H5AAGDJWDWH5jFmdBQl8Z5yAGAZfngDZ6H9HIiACAhUCgMgPgSYAYA4EoDiE" + "WBGBiAxhAIXAADITRzGIIA2AyAxYleCJhGiFgnggYg4iIEYImKKIqC6B4iliMg2DYIRolYIoLA2ExmDmDwNhiNg9g+Y44goPYMmGeJeEKD4hBMMJbDaTIYnYTg2mUOBa" + "FOFZknkVhNhYZZJFIT4ViWWRElmFohmkYhehQJA4ESTg3A2WYuG2GwmmgWhuhyZwJjIcodGaeZmGANpnEMdhkAAJ5ZE4cYaieCZ2HeHhoGoEoIh4IRjESXg3iialFiQa" + "JaE6Fokg2ahWhiJBpEgRociWaZYHqH4mmiehqiOKBAAqDJUDgTgaiyYYFiqapGiyK4rAqTosiQa14jKKxrGqPo6i8a46laPIwmuGB6juMBrnsEo9jCLB6jKTIwCyawmk" + "2L4sGsQpDjObIrFAAA2E4U4WlyN4tlsfgWjebhLgaXY4waApqjoLorhSZY7C6a4KBGPBuhuQppjyIZrlKa48m8e5WBENwOHOIyNDAHAOBaQJwgwFwBgWDZziSaZCHAQ4" + "jAeQoxBwGp/kUMQME8FZFDGLBDBaB4xmwcwXkacQcDMDpDE6HIjCiSYyhyHwuDocpMisL5MHKfIuBGTIylyZgWDgToziyYg7A6TJ8myTwO7KPZRDQLQTEYOp0g0AxKgQ" + "dBNDcQ5PHSPRHEeVQ1A0XxMlaNRdGsT4Hg4Q44m2WB2D2CxkgWNhNicZpYjaDYvGWW52l2PxqDsdz+meBBOGOIEcAdAPAnEcPIPAbx4C2H+MEd4XAHDxGEPEDgBh6jBD" + "iDwEI4QFhvEOI8EYyR3i8EMPsZQcguCsBGMwOQMApj5GYEAPg8RtAADoDAFY9xpiAAQAggIA="); axSchedule1.Calendar.Selection = Convert.ToDateTime("6/27/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); (axSchedule1.GetOcx() as EXSCHEDULELib.Schedule).StatusEventColor = 0x2000000; (axSchedule1.GetOcx() as EXSCHEDULELib.Schedule).BodyEventBackColor = 0x4000000; axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleCreateEventBackColor,0x1000000); axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleUpdateEventsBackColor,0x1000000); axSchedule1.StatusEventSize = 6; axSchedule1.set_DefaultEventPadding(EXSCHEDULELib.PaddingEdgeEnum.exPaddingAll,2); EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("6/27/2012 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/27/2012 12:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).BodyBackColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0)); EXSCHEDULELib.Event var_Event = var_Events.Add(Convert.ToDateTime("6/27/2012 11:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/27/2012 13:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Event.BodyBackColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0)); var_Event.StatusColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,128)); var_Event.ExtraLabel = "Point"; EXSCHEDULELib.Event var_Event1 = var_Events.Add(Convert.ToDateTime("6/27/2012 8:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/27/2012 11:45:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Event1.StatusColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,255)); axSchedule1.EndUpdate(); |
190 |
Does your control support subscript or superscript, in HTML captions
axSchedule1.BodyEventBackColor = Color.FromArgb(240,240,240); axSchedule1.Calendar.Selection = Convert.ToDateTime("6/20/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("6/20/2012 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/20/2012 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).ExtraLabel = "<sha ;;0>Event <b><font ;6><off 4>1"; var_Events.Add(Convert.ToDateTime("6/20/2012 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/20/2012 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).ExtraLabel = "<sha ;;0>Event <b><font ;6><off 4>2"; var_Events.Add(Convert.ToDateTime("6/20/2012 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/20/2012 15:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).ExtraLabel = "<sha ;;0>Event <b><font ;6><off -6>2<off 4>3<off 4>1"; |
189 |
How can I hide the scheduler part of the control, so I can use the calendar panel only
|
188 |
I see how I can specify a non-working day pattern for weekends, but how can I specify non-working days for holidays
EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.set_SelectDate(Convert.ToDateTime("5/28/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")),true); var_Calendar.Select(EXSCHEDULELib.SelectCalendarDateEnum.exSelectWeek); var_Calendar.set_SelectDate(Convert.ToDateTime("6/5/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")),false); var_Calendar.Select(EXSCHEDULELib.SelectCalendarDateEnum.exSelectToggle | EXSCHEDULELib.SelectCalendarDateEnum.exSelectWeek); var_Calendar.set_SelectDate(Convert.ToDateTime("6/12/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")),false); var_Calendar.Select(EXSCHEDULELib.SelectCalendarDateEnum.exSelectToggle | EXSCHEDULELib.SelectCalendarDateEnum.exSelectWeek); EXSCHEDULELib.NonworkingTimes var_NonworkingTimes = axSchedule1.NonworkingTimes; var_NonworkingTimes.Add("month(value) = 5","00:00","24:00",-1); var_NonworkingTimes.Add("value in (#6/5/2012#,#6/7/2012#)","00:00","24:00",-1); |
187 |
How do I enable the scrollbar-extension, as thumb to be shown outside of the control's client area
axSchedule1.BeginUpdate(); axSchedule1.ScrollBars = EXSCHEDULELib.ScrollBarsEnum.exDisableBoth; axSchedule1.set_ScrollPartVisible(EXSCHEDULELib.ScrollBarEnum.exVScroll,EXSCHEDULELib.ScrollPartEnum.exExtentThumbPart,true); axSchedule1.set_ScrollPartVisible(EXSCHEDULELib.ScrollBarEnum.exHScroll,EXSCHEDULELib.ScrollPartEnum.exExtentThumbPart,true); axSchedule1.set_ScrollPartVisible((EXSCHEDULELib.ScrollBarEnum)0x2,EXSCHEDULELib.ScrollPartEnum.exExtentThumbPart,true); axSchedule1.ScrollWidth = 4; axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exVSBack,(uint)ColorTranslator.ToWin32(Color.FromArgb(240,240,240))); axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exVSThumb,(uint)ColorTranslator.ToWin32(Color.FromArgb(128,128,128))); axSchedule1.ScrollHeight = 4; axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exHSBack,axSchedule1.get_Background(EXSCHEDULELib.BackgroundPartEnum.exVSBack)); axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exHSThumb,axSchedule1.get_Background(EXSCHEDULELib.BackgroundPartEnum.exVSThumb)); axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScrollSizeGrip,axSchedule1.get_Background(EXSCHEDULELib.BackgroundPartEnum.exVSBack)); axSchedule1.EndUpdate(); |
186 |
How can I show contiguously the days, in a single row
|
185 |
How can I show contiguously the days
|
184 |
How can I display the time in european format with no usage of AM/PM
EXSCHEDULELib.TimeScale var_TimeScale = axSchedule1.TimeScales[0]; var_TimeScale.MajorTimeLabel = "<%hh%>:<%nn%>"; var_TimeScale.Width = 32; EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.Selection = Convert.ToDateTime("6/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Calendar.ShortTimeFormat = "<%h%>:<%nn%>"; EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("6/11/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/11/2001 13:15:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Events.Add(Convert.ToDateTime("6/11/2001 10:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/11/2001 14:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); |
183 |
Is it possible to zoom the schedule component using a key and scrolling the wheel (not pressing it and moving the mouse)
axSchedule1.AllowResizeSchedule = EXSCHEDULELib.AllowKeysEnum.exCTRLKey | EXSCHEDULELib.AllowKeysEnum.exMiddleClick; axSchedule1.AllowMoveSchedule = EXSCHEDULELib.AllowKeysEnum.exMiddleClick; |
182 |
How can I change the format of the date being displayed in the calendar panel
|
181 |
How can I display the Year in Thai, Buddhist, Korean format
EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.FirstWeekDay = var_Calendar.LocFirstWeekDay; var_Calendar.MonthNames = var_Calendar.LocMonthNames; var_Calendar.WeekDays = var_Calendar.LocWeekDays; var_Calendar.AMPM = var_Calendar.LocAMPM; var_Calendar.HeaderDayLabel = "<%mmmm%> <fgcolor=FF0000><%loc_yyyy%>"; axSchedule1.HeaderDayLongLabel = "<|><%dddd%>, <%mmmm%> <%d%>, <fgcolor=FF0000><%loc_yyyy%><|><%dddd%>,<%mmmm%> <%d%>,<fgcolor=FF0000><%loc_yyyy%><|><%dddd%>, <%" + "mmmm%> <%d%>,`<fgcolor=FF0000><%loc_yy%><|><%dddd%>, <%mmmm%> <%d%><|><%dddd%>, <%m3%> <%d%><|><%dddd%>, <%d%><|><%dddd%><|><%d3" + "%><|><%d2%><|><%d1%>"; |
180 |
May I specify a fixed width for my dates, so user can not resize it
axSchedule1.BeginUpdate(); axSchedule1.OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exCalendarAutoHide | EXSCHEDULELib.OnResizeControlEnum.exCalendarFit | EXSCHEDULELib.OnResizeControlEnum.exChangePanels | EXSCHEDULELib.OnResizeControlEnum.exResizePanelRight; axSchedule1.AllowResizeSchedule = EXSCHEDULELib.AllowKeysEnum.exDisallow; axSchedule1.AllowMoveSchedule = EXSCHEDULELib.AllowKeysEnum.exMiddleClick; axSchedule1.ShowViewCompact = EXSCHEDULELib.ShowViewCompactEnum.exViewCalendarCompact; axSchedule1.DayViewWidth = 96; axSchedule1.DayViewHeight = 256; axSchedule1.EndUpdate(); |
179 |
How can I change the format of date being displayed on the header
|
178 |
Is there any notifications for exchanging the panels at runtime
// LayoutEndChanging event - Notifies your application once the control's layout has been changed. private void axSchedule1_LayoutEndChanging(object sender, AxEXSCHEDULELib._IScheduleEvents_LayoutEndChangingEvent e) { System.Diagnostics.Debug.Print( "End exLayoutExchangePanels(16)" ); System.Diagnostics.Debug.Print( e.operation.ToString() ); } //this.axSchedule1.LayoutEndChanging += new AxEXSCHEDULELib._IScheduleEvents_LayoutEndChangingEventHandler(this.axSchedule1_LayoutEndChanging); // LayoutStartChanging event - Occurs when the control's layout is about to be changed. private void axSchedule1_LayoutStartChanging(object sender, AxEXSCHEDULELib._IScheduleEvents_LayoutStartChangingEvent e) { System.Diagnostics.Debug.Print( "Start exLayoutExchangePanels(16)" ); System.Diagnostics.Debug.Print( e.operation.ToString() ); } //this.axSchedule1.LayoutStartChanging += new AxEXSCHEDULELib._IScheduleEvents_LayoutStartChangingEventHandler(this.axSchedule1_LayoutStartChanging); axSchedule1.AllowExchangePanels = EXSCHEDULELib.AllowKeysEnum.exLeftClick; axSchedule1.AllowCreateEvent = EXSCHEDULELib.AllowKeysEnum.exDisallow; |
177 |
How can I handle the All-Day events only
axSchedule1.BeginUpdate(); axSchedule1.OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exCalendarAutoHide | EXSCHEDULELib.OnResizeControlEnum.exCalendarFit; axSchedule1.ShowAllDayHeader = true; EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.set_SelectDate(Convert.ToDateTime("5/8/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")),true); var_Calendar.Select(EXSCHEDULELib.SelectCalendarDateEnum.exSelectWeek); var_Calendar.set_SelectDate(Convert.ToDateTime("5/15/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")),false); var_Calendar.Select(EXSCHEDULELib.SelectCalendarDateEnum.exSelectToggle | EXSCHEDULELib.SelectCalendarDateEnum.exSelectWeek); axSchedule1.TimeScales[0].Visible = false; axSchedule1.Events.Add(Convert.ToDateTime("5/8/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("5/17/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).AllDayEvent = true; axSchedule1.EndUpdate(); |
176 |
Is it possible to show the All-Day events with EBN including the next/prev signs (2)
axSchedule1.BeginUpdate(); axSchedule1.OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exCalendarAutoHide | EXSCHEDULELib.OnResizeControlEnum.exCalendarFit; axSchedule1.ShowAllDayHeader = true; EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.set_SelectDate(Convert.ToDateTime("5/8/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")),true); var_Calendar.Select(EXSCHEDULELib.SelectCalendarDateEnum.exSelectWeek); var_Calendar.set_SelectDate(Convert.ToDateTime("5/15/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")),false); var_Calendar.Select(EXSCHEDULELib.SelectCalendarDateEnum.exSelectToggle | EXSCHEDULELib.SelectCalendarDateEnum.exSelectWeek); axSchedule1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAEGg4BbkMQAAYAQGKIYBkAKBQAGaAoDDcOILQiMQzjTBMKgBBCLIxiGK4DhiF4aRSBMIwYAAYhyG4BIRGcYJEDMOQzR4MICSBKkMhlDiPY5mUAJE" + "iSJg3TDQlzpAoSGoeUhGTZnQaQASXJqKZ6kegoEh4MopTTHQLRUB8EyTDKnaapSJpEDINQlWTZciDKKFUQTNi3KxraKqbjqO47VJKEpSZBMXRhBIYZCueZZXgPBY5YhI" + "E64BSeASoACDZzoaAwTrOAwUZZFVg2DSOGSBRzQMKrCZKagnFYDVzleYxLjdR47Qy1Ih2GA7QqubYkUTmOjgBaoAYxQaaLx0OS5Rj4NAwZLFXI1eAGd6BDLhLz4XAOHx" + "HjmAZvGOWoeG8PhBiMGIMGOQxZCQOBpGUG4NncEIdB8MxLhSbpRnMIIIEkQJSGMOgdE4RhfAwJZtAwEIEleeQZA2EIQiECR2ludB8BgRYMAeKYDByB4DG5F4hBgTgWgU" + "YYIFIGoFmGOBlAmBJMmMQJwggYg4goJIJmIaImCWCpigiLgTgeYQYjYMoKiMOIyDSCIinQDggg2YxonYNYNGOEACDuD4jkifhFg4IQYkCW4RiQSQ2ECEhjiiRhHhOJQ4" + "jYQYQmSSRmFOFZlCkUhehMJZJC4VYYmWaYGFqF5ljkQhChcZh5jYKoZiYSY6D2HAmgmVhWhqJYJkYeoLieCYyHuHInEmSoAh8Zgplof4SA2OQqgKIZPAmBgciOYYaEIH" + "YkmQFAEIC"); axSchedule1.VisualAppearance.Add(2,"gBFLBCJwBAEHhEJAEGg4BVMIQAAYAQGKIYBkAKBQAGaAoDDYMwzQwAAxjOK0EwsACEIrjKCRShyCYZRhGcTSBCIZBqEqSZLiEZRQiiCYsS5GQBSFDcOwHGyQYDkCQpE" + "hyKo+CTIAySXJsdw3IyNAIhEB4fgmM4DP7UIAVC78aRABCESgNEwzULUchlDDICJQSQRGzHDSKYDFCCaKgOTI6kgicpJUt6PBtaovKoWOZBcJ3Xjed6vBgeASpQbEL6w" + "DCbfrjB6KY5eeDXXSkAkB"); axSchedule1.VisualAppearance.Add(3,"gBFLBCJwBAEHhEJAEGg4BVUIQAAYAQGKIYBkAKBQAGaAoDDYMwzQwAAxjOK0EwsACEIrjKCRShyCYZRhGcTSBCIZBqEqSZLiEZRQiiCYsS5GQBSFDcOwHGyQYDkCQpE" + "hyKo+CTIAySXJsZxpHKaAIhEB4fgmRgAP7UNQVFLkEgRBIoDRMM5DVLIZQxSAiUIkERtRQ1CqBRQhGioDoyOgABhFZSUPKlIztO45DwbO56RrlWzONA8FzXdgDYYLQjA" + "cJwXA7awrAZ8P7iGBZBbtdQCgIA=="); (axSchedule1.GetOcx() as EXSCHEDULELib.Schedule).BodyEventBackColor = 0x1000000; axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleEventContinueNextWeek,0x2000000); axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleEventContinuePrevWeek,0x3000000); axSchedule1.HeaderAllDayEventHeight = -14; axSchedule1.Events.Add(Convert.ToDateTime("5/8/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("5/17/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).AllDayEvent = true; axSchedule1.EndUpdate(); |
175 |
How can I select programatically two weeks
EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.set_SelectDate(Convert.ToDateTime("5/8/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")),true); var_Calendar.Select(EXSCHEDULELib.SelectCalendarDateEnum.exSelectWeek); var_Calendar.set_SelectDate(Convert.ToDateTime("5/15/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")),false); var_Calendar.Select(EXSCHEDULELib.SelectCalendarDateEnum.exSelectToggle | EXSCHEDULELib.SelectCalendarDateEnum.exSelectWeek); |
174 |
Is it possible to show the All-Day events with EBN including the next/prev signs (1)
axSchedule1.BeginUpdate(); axSchedule1.OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exCalendarAutoHide; axSchedule1.ShowAllDayHeader = true; EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.FirstWeekDay = EXSCHEDULELib.WeekDayEnum.exMonday; var_Calendar.set_SelectDate(Convert.ToDateTime("5/8/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")),true); var_Calendar.Select(EXSCHEDULELib.SelectCalendarDateEnum.exSelectWeek); var_Calendar.set_SelectDate(Convert.ToDateTime("5/15/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")),false); var_Calendar.Select(EXSCHEDULELib.SelectCalendarDateEnum.exSelectToggle | EXSCHEDULELib.SelectCalendarDateEnum.exSelectWeek); axSchedule1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAEGg4BbkMQAAYAQGKIYBkAKBQAGaAoDDcOILQiMQzjTBMKgBBCLIxiGK4DhiF4aRSBMIwYAAYhyG4BIRGcYJEDMOQzR4MICSBKkMhlDiPY5mUAJE" + "iSJg3TDQlzpAoSGoeUhGTZnQaQASXJqKZ6kegoEh4MopTTHQLRUB8EyTDKnaapSJpEDINQlWTZciDKKFUQTNi3KxraKqbjqO47VJKEpSZBMXRhBIYZCueZZXgPBY5YhI" + "E64BSeASoACDZzoaAwTrOAwUZZFVg2DSOGSBRzQMKrCZKagnFYDVzleYxLjdR47Qy1Ih2GA7QqubYkUTmOjgBaoAYxQaaLx0OS5Rj4NAwZLFXI1eAGd6BDLhLz4XAOHx" + "HjmAZvGOWoeG8PhBiMGIMGOQxZCQOBpGUG4NncEIdB8MxLhSbpRnMIIIEkQJSGMOgdE4RhfAwJZtAwEIEleeQZA2EIQiECR2ludB8BgRYMAeKYDByB4DG5F4hBgTgWgU" + "YYIFIGoFmGOBlAmBJMmMQJwggYg4goJIJmIaImCWCpigiLgTgeYQYjYMoKiMOIyDSCIinQDggg2YxonYNYNGOEACDuD4jkifhFg4IQYkCW4RiQSQ2ECEhjiiRhHhOJQ4" + "jYQYQmSSRmFOFZlCkUhehMJZJC4VYYmWaYGFqF5ljkQhChcZh5jYKoZiYSY6D2HAmgmVhWhqJYJkYeoLieCYyHuHInEmSoAh8Zgplof4SA2OQqgKIZPAmBgciOYYaEIH" + "YkmQFAEIC"); axSchedule1.VisualAppearance.Add(2,"gBFLBCJwBAEHhEJAEGg4BKMMQAAYAQGKIYBkAKBQAGaAoDDUNgwQwAAxDGKkEwsACEIrjKCRShyCYZRhGcTSBCIZBqEqSZLiEZRQiiCYsS5GQBSFDcOwHGyQYDkCQpE" + "hyKo+CTIA4SXJsdxpI4EIRCSL6MgNf5PABTb7zTSgYANF6WRZgWgpTjcMJHTpYFIwHRdQwHLqoagqKZJAqMABQGiYZyHKcwMYgBZXJBEbbMNBtBIUIRtaxZBBiFzgUZY" + "EBnEbDN4YbapMhyLI2OZBcCOJQ4SCoW4GJ49J7KXgYZiHOLcfjcLovLq5fiOQ5CV5ZXROM6sQyzIKWaCzLL5PjKHInWrPNa3DJtDyXJzUNY9GScG6HBLhWB0czzXIuO4" + "djqXg4jUOo9j8N4Zk6YoeA+bZKhcV49kyaAllODhPC8d5bi+WJ6H0fhvHcExIHgQB4nuHpOj4Y4zioeQfDePZRGcHI3lGIh9h4JwhkodQckecY9G+WpHDmUAdAeNwCBE" + "fRcGaIZ/G2D52gWfR0iGRhFg8Y5iBYTQBICA="); axSchedule1.VisualAppearance.Add(3,"gBFLBCJwBAEHhEJAEGg4BgsHQAAYAQGKIYBkAKBQAGaAoDDUNgwQwAAxDGKkEwsACEIrjKCRShyCYZRhGcTSBCIZBqEqSZLiEZRQiiCYsS5GQBSFDcOwHGyQYDkCQpE" + "hyKo+CTIA4SXJsZxpI6EQQhEJIfo2Az/VAAFQPfLNKhgAyXZZFWBaCoaEgwUhVMhUVAdGR1BKvKjqKoZcomCRQGiYZyHKcwMYgBZRRBEbbMNBtBIULasWjQYhdYI7WDT" + "dR4XhmGDkPBtcbbPDcUpBBSLOAjSSOExzILhSrFVyXVzTXL5XDGMg7Wa5foFIDmPRtVbWNydLyvICOJK2eZOExrHrhWrPMZaRpnUyXJ6pcBvfA4Zi7QZlWjPOR2aoNCZ" + "bjuXpyjsPIahmYJ/keVR0HwPYsnIXQ4mSZ50jwXIfC+HxnmmcZ2HuCAOn+P43lSUZ1neXxeF4L4bmgeoeCcCZEHcXxIAGLBlBuBpphsdgfGaNB0B6WwXjoARrE+dxVkY" + "ageAgHgUD+XJWm2U4GliNhJhIQBAICA=="); (axSchedule1.GetOcx() as EXSCHEDULELib.Schedule).BodyEventBackColor = 0x1000000; axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleEventContinueNextWeek,0x2000000); axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleEventContinuePrevWeek,0x3000000); axSchedule1.HeaderAllDayEventHeight = -20; axSchedule1.Events.Add(Convert.ToDateTime("5/8/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("5/17/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).AllDayEvent = true; axSchedule1.EndUpdate(); |
173 |
Can I make it zoom in using CTRL-MouseWheel instead of using the middle button
|
172 |
It is by default not possible, to simply scroll the component with the mouse wheel. How do I make it so
|
171 |
Can I get and set the width of the time bar
|
170 |
How do I select the current year
|
169 |
How do I select the current week day
|
168 |
How do I select the current week
|
167 |
How can I restore the layout of the panels, when user changes the width and the alignment of the panels
// LayoutEndChanging event - Notifies your application once the control's layout has been changed. private void axSchedule1_LayoutEndChanging(object sender, AxEXSCHEDULELib._IScheduleEvents_LayoutEndChangingEvent e) { System.Diagnostics.Debug.Print( "End Operation " ); System.Diagnostics.Debug.Print( e.operation.ToString() ); System.Diagnostics.Debug.Print( "Layout " ); System.Diagnostics.Debug.Print( axSchedule1.OnResizeControl.ToString() ); System.Diagnostics.Debug.Print( "PaneWidth(False)" ); System.Diagnostics.Debug.Print( axSchedule1.get_PaneWidth(false).ToString() ); } //this.axSchedule1.LayoutEndChanging += new AxEXSCHEDULELib._IScheduleEvents_LayoutEndChangingEventHandler(this.axSchedule1_LayoutEndChanging); // LayoutStartChanging event - Occurs when the control's layout is about to be changed. private void axSchedule1_LayoutStartChanging(object sender, AxEXSCHEDULELib._IScheduleEvents_LayoutStartChangingEvent e) { System.Diagnostics.Debug.Print( "Start Operation " ); System.Diagnostics.Debug.Print( e.operation.ToString() ); System.Diagnostics.Debug.Print( "Layout " ); System.Diagnostics.Debug.Print( axSchedule1.OnResizeControl.ToString() ); System.Diagnostics.Debug.Print( "PaneWidth(False)" ); System.Diagnostics.Debug.Print( axSchedule1.get_PaneWidth(false).ToString() ); } //this.axSchedule1.LayoutStartChanging += new AxEXSCHEDULELib._IScheduleEvents_LayoutStartChangingEventHandler(this.axSchedule1_LayoutStartChanging); // MouseMove event - Occurs when the user moves the mouse. private void axSchedule1_MouseMoveEvent(object sender, AxEXSCHEDULELib._IScheduleEvents_MouseMoveEvent e) { System.Diagnostics.Debug.Print( "Layout " ); System.Diagnostics.Debug.Print( axSchedule1.OnResizeControl.ToString() ); System.Diagnostics.Debug.Print( "PaneWidth(False)" ); System.Diagnostics.Debug.Print( axSchedule1.get_PaneWidth(false).ToString() ); } //this.axSchedule1.MouseMoveEvent += new AxEXSCHEDULELib._IScheduleEvents_MouseMoveEventHandler(this.axSchedule1_MouseMoveEvent); |
166 |
Is it possibly to set the column width of the group/person using the api
|
165 |
When viewing the schedule by week or month and the month ends during the week (July 31, Tuesday -> August 1, Wednesday), the days continue down as a new week 'row'. When there is a change in month, is it possible to still show the full week without that break (compact)
|
164 |
I want to change the default event tooltip. How can I do that
|
163 |
How can I select the entire week for a specified date
axSchedule1.BeginUpdate(); EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.NonworkingDays = 0; var_Calendar.ShowNonMonthDays = false; var_Calendar.FirstWeekDay = EXSCHEDULELib.WeekDayEnum.exSunday; var_Calendar.Selection = Convert.ToDateTime("3/5/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Calendar.Selection = "(int((yearday(value) -1- ((7-weekday(value - yearday(value) + 1)) mod 7) )/7) = int((yearday(#3/5/2012#)-1)/7))"; axSchedule1.BorderSelStyle = EXSCHEDULELib.LinesStyleEnum.exNoLines; axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleMarkTodayBackColor,(uint)ColorTranslator.ToWin32(Color.FromArgb(240,240,240))); axSchedule1.EndUpdate(); |
162 |
I have noticed that I can drag bars from All-Day header to time-zone and reverse. Is it possible to prevent that
axSchedule1.BeginUpdate(); axSchedule1.OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exCalendarAutoHide; axSchedule1.ShowAllDayHeader = true; axSchedule1.AllowUpdateAllDayFlag = false; axSchedule1.Calendar.Selection = Convert.ToDateTime("5/23/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); axSchedule1.Calendar.Selection = "value in (#5/23/2012#,#5/24/2012#,#5/25/2012#)"; EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("5/24/2012 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("5/24/2012 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).ExtraLabel = "<sha>dentist"; var_Events.Add(Convert.ToDateTime("5/24/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("5/25/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).AllDayEvent = true; var_Events.Add(Convert.ToDateTime("5/23/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("5/24/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).AllDayEvent = true; axSchedule1.SelectEventStyle = EXSCHEDULELib.LinesStyleEnum.exNoLines; axSchedule1.ShowSelectEvent = false; axSchedule1.EndUpdate(); |
161 |
When an all-day event stretches over multiple days (ex. Monday thru Friday), is it possible to have that display as a continuous bar across those days instead of separate bars on each day
|
160 |
If I double click to a scheduled event and enter text, how can I read this newly entered text (i.e. what is its corresponding field)
// LayoutEndChanging event - Notifies your application once the control's layout has been changed. private void axSchedule1_LayoutEndChanging(object sender, AxEXSCHEDULELib._IScheduleEvents_LayoutEndChangingEvent e) { System.Diagnostics.Debug.Print( axSchedule1.get_EventFromPoint(-1,-1).ToString() ); } //this.axSchedule1.LayoutEndChanging += new AxEXSCHEDULELib._IScheduleEvents_LayoutEndChangingEventHandler(this.axSchedule1_LayoutEndChanging); axSchedule1.BeginUpdate(); axSchedule1.Calendar.Selection = Convert.ToDateTime("5/24/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("5/24/2012 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("5/24/2012 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).ExtraLabel = "editable"; axSchedule1.SelectEventStyle = EXSCHEDULELib.LinesStyleEnum.exNoLines; axSchedule1.ShowSelectEvent = false; axSchedule1.EndUpdate(); |
159 |
Is it possible to show the date's header with a shadow
|
158 |
We need to highlight a day for example no booking/disabling for that day, is the timezone good choice (method 3)
EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.Selection = Convert.ToDateTime("6/27/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Calendar.Selection = "value in (#6/26/2012#,#6/27/2012#,#6/28/2012#)"; axSchedule1.AllowMultiDaysEvent = false; axSchedule1.NonworkingPatterns.Add(1,EXSCHEDULELib.PatternEnum.exPatternSolid).Pattern.Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(240,240,240)); axSchedule1.NonworkingTimes.Add("value in (#6/27/2012#)","00:00","24:00",1); axSchedule1.ShowNonworkingTime = EXSCHEDULELib.ShowNonworkingTimeEnum.exShowNonworkingTimeBack; axSchedule1.Calendar.DisableZoneFormat = "value in (#6/27/2012#)"; |
157 |
We need to highlight a day for example no booking for that day, is the timezone good choice (method 2)
EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.Selection = Convert.ToDateTime("6/27/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Calendar.Selection = "value in (#6/26/2012#,#6/27/2012#,#6/28/2012#)"; axSchedule1.NonworkingPatterns.Add(1,EXSCHEDULELib.PatternEnum.exPatternSolid).Pattern.Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(240,240,240)); axSchedule1.NonworkingTimes.Add("value in (#6/27/2012#)","00:00","24:00",1); axSchedule1.ShowNonworkingTime = EXSCHEDULELib.ShowNonworkingTimeEnum.exShowNonworkingTimeBack; |
156 |
We need to highlight a day for example no booking for that day, is the timezone good choice (method 1)
EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.Selection = Convert.ToDateTime("6/27/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Calendar.Selection = "value in (#6/26/2012#,#6/27/2012#,#6/28/2012#)"; EXSCHEDULELib.MarkZone var_MarkZone = axSchedule1.MarkZones.Add("zone",Convert.ToDateTime("6/27/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/28/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_MarkZone.BackColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(240,240,240)); var_MarkZone.Pattern.Type = EXSCHEDULELib.PatternEnum.exPatternEmpty; axSchedule1.ShowMarkZone = EXSCHEDULELib.ShowMarkZoneEnum.exShowMarkZonesBack; |
155 |
Is is possible to change the background color for a specific day
EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.Selection = Convert.ToDateTime("6/27/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Calendar.Selection = "value in (#6/26/2012#,#6/27/2012#,#6/28/2012#)"; EXSCHEDULELib.MarkZone var_MarkZone = axSchedule1.MarkZones.Add("zone",Convert.ToDateTime("6/27/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/28/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_MarkZone.BackColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(240,240,240)); var_MarkZone.Pattern.Type = EXSCHEDULELib.PatternEnum.exPatternEmpty; axSchedule1.ShowMarkZone = EXSCHEDULELib.ShowMarkZoneEnum.exShowMarkZonesBack; |
154 |
I want to know how can I call a user define form when editing a time slot
// LayoutEndChanging event - Notifies your application once the control's layout has been changed. private void axSchedule1_LayoutEndChanging(object sender, AxEXSCHEDULELib._IScheduleEvents_LayoutEndChangingEvent e) { System.Diagnostics.Debug.Print( "End exScheduleResize(5)" ); System.Diagnostics.Debug.Print( e.operation.ToString() ); } //this.axSchedule1.LayoutEndChanging += new AxEXSCHEDULELib._IScheduleEvents_LayoutEndChangingEventHandler(this.axSchedule1_LayoutEndChanging); // LayoutStartChanging event - Occurs when the control's layout is about to be changed. private void axSchedule1_LayoutStartChanging(object sender, AxEXSCHEDULELib._IScheduleEvents_LayoutStartChangingEvent e) { System.Diagnostics.Debug.Print( "Start exScheduleResize(5)" ); System.Diagnostics.Debug.Print( e.operation.ToString() ); } //this.axSchedule1.LayoutStartChanging += new AxEXSCHEDULELib._IScheduleEvents_LayoutStartChangingEventHandler(this.axSchedule1_LayoutStartChanging); EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.SingleSel = true; var_Calendar.OnSelectDate = EXSCHEDULELib.OnSelectDateEnum.exEnsureVisibleDate; axSchedule1.ClipToSel = true; axSchedule1.AllowMoveSchedule = EXSCHEDULELib.AllowKeysEnum.exDisallow; axSchedule1.AllowMoveGroup = EXSCHEDULELib.AllowKeysEnum.exDisallow; axSchedule1.AllowResizeSchedule = EXSCHEDULELib.AllowKeysEnum.exLeftClick; axSchedule1.AllowCreateEvent = EXSCHEDULELib.AllowKeysEnum.exDisallow; |
153 |
Can we lock the scroll bars so that it only scrolls within the selected date
|
152 |
Is it possible to specify the dates to be printed to a single page
EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.Selection = Convert.ToDateTime("6/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Calendar.Selection = "value in (#6/11/2001#,#6/12/2001#)"; axSchedule1.DayViewWidth = 116; axSchedule1.DayViewHeight = 116; EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("6/11/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/11/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Events.Add(Convert.ToDateTime("6/12/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/12/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); // Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project. EXPRINTLib.Print var_Print = new EXPRINTLib.Print(); var_Print.Options = "Range=month(value)=6;FitToPage=On"; var_Print.PrintExt = (axSchedule1.GetOcx() as EXSCHEDULELib.Schedule); var_Print.Preview(); |
151 |
Is it possible to specify the dates to be printed
EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.Selection = Convert.ToDateTime("6/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Calendar.Selection = "value in (#6/11/2001#,#6/12/2001#)"; axSchedule1.DayViewWidth = 116; axSchedule1.DayViewHeight = 116; EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("6/11/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/11/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Events.Add(Convert.ToDateTime("6/12/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/12/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); // Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project. EXPRINTLib.Print var_Print = new EXPRINTLib.Print(); var_Print.Options = "Range=month(value)=6"; var_Print.PrintExt = (axSchedule1.GetOcx() as EXSCHEDULELib.Schedule); var_Print.Preview(); |
150 |
Does your control support Fit-To-Page, while printing
EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.Selection = Convert.ToDateTime("6/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Calendar.Selection = "value in (#6/11/2001#,#6/12/2001#)"; axSchedule1.DayViewWidth = 512; axSchedule1.DayViewHeight = 512; EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("6/11/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/11/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Events.Add(Convert.ToDateTime("6/12/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/12/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); // Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project. EXPRINTLib.Print var_Print = new EXPRINTLib.Print(); var_Print.Options = "FitToPage=On"; var_Print.PrintExt = (axSchedule1.GetOcx() as EXSCHEDULELib.Schedule); var_Print.Preview(); |
149 |
Does your control support Print and Print-Preview
EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.Selection = Convert.ToDateTime("6/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Calendar.Selection = "value in (#6/11/2001#,#6/12/2001#)"; axSchedule1.DayViewWidth = 512; axSchedule1.DayViewHeight = 512; EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("6/11/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/11/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Events.Add(Convert.ToDateTime("6/12/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/12/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); // Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project. EXPRINTLib.Print var_Print = new EXPRINTLib.Print(); var_Print.PrintExt = (axSchedule1.GetOcx() as EXSCHEDULELib.Schedule); var_Print.Preview(); |
148 |
How can I specify the height (time slot) of the day to be larger
|
147 |
How can I prevent resizing the schedule view, when a new date is selected
|
146 |
How do I get notified once the user moves an event
// UpdateEvent event - Notifies your application once the event changes the starting or ending margins. private void axSchedule1_UpdateEvent(object sender, AxEXSCHEDULELib._IScheduleEvents_UpdateEventEvent e) { System.Diagnostics.Debug.Print( "UpdateEvent" ); System.Diagnostics.Debug.Print( e.ev.ToString() ); } //this.axSchedule1.UpdateEvent += new AxEXSCHEDULELib._IScheduleEvents_UpdateEventEventHandler(this.axSchedule1_UpdateEvent); axSchedule1.SelectEventStyle = EXSCHEDULELib.LinesStyleEnum.exLinesSolid; axSchedule1.DefaultEventLongLabel = "<%=%256%><br><%=%5%>"; axSchedule1.DefaultEventShortLabel = axSchedule1.DefaultEventLongLabel; axSchedule1.Calendar.Selection = Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); axSchedule1.OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exCalendarAutoHide | EXSCHEDULELib.OnResizeControlEnum.exCalendarFit | EXSCHEDULELib.OnResizeControlEnum.exResizePanelRight; EXSCHEDULELib.Events var_Events = axSchedule1.Events; EXSCHEDULELib.Event var_Event = var_Events.Add(Convert.ToDateTime("1/10/2001 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 12:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Event.Editable = EXSCHEDULELib.EditableCaptionEnum.exEditCaption; var_Event.Caption = "your caption"; EXSCHEDULELib.Event var_Event1 = var_Events.Add(Convert.ToDateTime("1/10/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Event1.Editable = EXSCHEDULELib.EditableCaptionEnum.exEditCaption; var_Event1.Caption = "other caption"; |
145 |
Can You give me an example for the event handler when a user double clicks an appointment
// DblClick event - Occurs when the user dblclk the left mouse button over an object. private void axSchedule1_DblClick(object sender, AxEXSCHEDULELib._IScheduleEvents_DblClickEvent e) { Object e = (axSchedule1.get_EventFromPoint(-1,-1) as Object); System.Diagnostics.Debug.Print( "Start:" ); System.Diagnostics.Debug.Print( e.ToString() ); System.Diagnostics.Debug.Print( "End:" ); System.Diagnostics.Debug.Print( e.ToString() ); } //this.axSchedule1.DblClick += new AxEXSCHEDULELib._IScheduleEvents_DblClickEventHandler(this.axSchedule1_DblClick); axSchedule1.AllowEditEvent = EXSCHEDULELib.AllowKeysEnum.exDisallow; axSchedule1.AllowToggleSchedule = EXSCHEDULELib.AllowKeysEnum.exDisallow; EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.Selection = Convert.ToDateTime("6/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Calendar.Selection = "value in (#6/11/2001#,#6/12/2001#,#6/13/2001#)"; EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("6/11/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/11/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Events.Add(Convert.ToDateTime("6/12/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/12/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); |
144 |
Nothing is shown in the schedule view, if I use the Selection property. What am I doing wrong
EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.Selection = Convert.ToDateTime("6/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Calendar.Selection = "value in (#6/11/2001#,#6/12/2001#,#6/13/2001#)"; |
143 |
Is it possible to lock a date/day, so no events can be created, moved, and so on
|
142 |
How can I show the grid lines for minor and major rules in the schedule view
axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleMajorTimeScaleStyle,(uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,0))); axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleMajorTimeRulerColor,(uint)ColorTranslator.ToWin32(Color.FromArgb(192,192,192))); axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleTimeScaleMajorRulerStyle,(uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,0))); axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleTimeScaleMajorRulerColor,(uint)ColorTranslator.ToWin32(Color.FromArgb(192,192,192))); axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleMinorTimeScaleStyle,(uint)ColorTranslator.ToWin32(Color.FromArgb(3,0,0))); axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleTimeScaleMinorRulerStyle,(uint)ColorTranslator.ToWin32(Color.FromArgb(3,0,0))); |
141 |
Is it possible to show the grid lines for minor rulers too in the schedule view
axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleMinorTimeScaleStyle,(uint)ColorTranslator.ToWin32(Color.FromArgb(3,0,0))); |
140 |
How can I change the style and colors to show the grid lines
axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleMajorTimeScaleStyle,(uint)ColorTranslator.ToWin32(Color.FromArgb(48,0,0))); axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleMajorTimeRulerColor,(uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0))); axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleTimeScaleMajorRulerStyle,(uint)ColorTranslator.ToWin32(Color.FromArgb(3,0,0))); axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleTimeScaleMajorRulerColor,(uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0))); |
139 |
How can I show a solid line rather than dot lines in the schedule view
axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleMajorTimeScaleStyle,(uint)ColorTranslator.ToWin32(Color.FromArgb(48,0,0))); axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exScheduleMajorTimeRulerColor,(uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,0))); |
138 |
Is it possible to hide or change the lines in the schedule view
|
137 |
Is there a possiblity to lock an event, so it can't be moved or edited
axSchedule1.Calendar.Selection = Convert.ToDateTime("6/27/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); EXSCHEDULELib.Events var_Events = axSchedule1.Events; EXSCHEDULELib.Event var_Event = var_Events.Add(Convert.ToDateTime("6/27/2012 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/27/2012 11:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Event.BodyPattern.Type = EXSCHEDULELib.PatternEnum.exPatternBDiagonal; var_Event.Movable = false; var_Event.Resizable = EXSCHEDULELib.EventResizableEnum.exNoResizable; var_Event.Selectable = false; var_Event.Editable = EXSCHEDULELib.EditableCaptionEnum.exNoEditable; var_Event.ExtraLabel = "locked"; var_Events.Add(Convert.ToDateTime("6/27/2012 13:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/27/2012 15:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); |
136 |
Is it possible to load a PNG file on the control's background ( /com only )
|
135 |
What is the Event.UserData property used for
axSchedule1.Calendar.Selection = Convert.ToDateTime("6/27/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); axSchedule1.DefaultEventTooltip = "Start: <%=%1%><br>End: <%=%2%><br>Duration: <%=((1:=int(0:= (date(%2)-date(%1)))) != 0 ? (=:1 + ' day(s)') : '') + (=:1 ? ' ' :" + " '' ) + ((1:=int(0:=((=:0 - =:1 + 1/24/60/60/2)*24))) != 0 ? =:1 + ' hour(s)' : '' ) + (=:1 ? ' ' : '' ) + ((1:=round((=:0 - =:1" + ")*60)) != 0 ? =:1 + ' min(s)' : '')%><b><%=(len(%6) ? `<br>UserData: `+ %6 : ``)%></b>"; EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("6/27/2012 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/27/2012 12:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).UserData = "Any extra data associated with the event"; var_Events.Add(Convert.ToDateTime("6/27/2012 11:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/27/2012 13:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); |
134 |
Is there also an event for when a user selects another month in the date-picker control
// LayoutEndChanging event - Notifies your application once the control's layout has been changed. private void axSchedule1_LayoutEndChanging(object sender, AxEXSCHEDULELib._IScheduleEvents_LayoutEndChangingEvent e) { System.Diagnostics.Debug.Print( "End exCalendarDateChange(3)" ); System.Diagnostics.Debug.Print( e.operation.ToString() ); System.Diagnostics.Debug.Print( "Currently browsing date:" ); System.Diagnostics.Debug.Print( axSchedule1.Calendar.Date.ToString() ); } //this.axSchedule1.LayoutEndChanging += new AxEXSCHEDULELib._IScheduleEvents_LayoutEndChangingEventHandler(this.axSchedule1_LayoutEndChanging); // LayoutStartChanging event - Occurs when the control's layout is about to be changed. private void axSchedule1_LayoutStartChanging(object sender, AxEXSCHEDULELib._IScheduleEvents_LayoutStartChangingEvent e) { System.Diagnostics.Debug.Print( "Start exCalendarDateChange(3)" ); System.Diagnostics.Debug.Print( e.operation.ToString() ); System.Diagnostics.Debug.Print( "Previously browsing date:" ); System.Diagnostics.Debug.Print( axSchedule1.Calendar.Date.ToString() ); } //this.axSchedule1.LayoutStartChanging += new AxEXSCHEDULELib._IScheduleEvents_LayoutStartChangingEventHandler(this.axSchedule1_LayoutStartChanging); |
133 |
How can I display the time-zone behind or back (method 2)
|
132 |
How can I display the time-zone behind or back (method 1)
|
131 |
How can I add a time-zone
|
130 |
How can I specify a larger height for the timer, or it is possible to make it bigger
axSchedule1.BeginUpdate(); axSchedule1.Calendar.Selection = Convert.ToDateTime("5/24/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); EXSCHEDULELib.Appearance var_Appearance = axSchedule1.VisualAppearance; var_Appearance.Add(1,"gBFLBCJwBAEHhEJAEGg4BC0MQAAYAQGKIYBkAKBQAGaAoDDUOQzQwAAxDGKUEwsACEIrjKCYVgOHYYQjGMZwHIUIhkGoSZKlCIRVDCKYJSzLcZAFIMRwSBiEQTmaa4W" + "iKIgIQiUBomGahajkMoYZCYKKSCI2S4aDZCIoTPLMagxC5GJCnSJnITJCpdV7XVgWHYVSzDM6yEScZTkFqubZsW5cNwXHZ9azkQpyFRPe6bbrqfJ/X5gN64HgBfrEUo8" + "cLxHCMKw3DKPYrkOLHS4CQjnSrLcqzDK8ax3GafZwcbqKWbmR5LUjTNR1DS9Hy3Kh8O4sSDbDqeZZpW7bNx2Xa9YQZcS5JBvfA8BwXC6JY7heR4ZIHTT9GbNc7zXQdHx" + "LiuUZrnUEwvFYIoDjeXZuHePA+A8Hx/kuYhQD2WQqg8T4vlWbJ3nuPg+l+H5BFEASAg=="); var_Appearance.Add(2,"CP:1 0 -3 0 3"); EXSCHEDULELib.MarkTime var_MarkTime = axSchedule1.MarkTimes.Add("timer1",Convert.ToDateTime("5/24/2012 11:15:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_MarkTime.BackColor = 0x1000000; var_MarkTime.Line = EXSCHEDULELib.LinesStyleEnum.exNoLines; var_MarkTime.Label = "default height"; var_MarkTime.LabelAlign = EXSCHEDULELib.ContentAlignmentEnum.exBottomRight; EXSCHEDULELib.MarkTime var_MarkTime1 = axSchedule1.MarkTimes.Add("timer2",Convert.ToDateTime("5/24/2012 13:15:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_MarkTime1.BackColor = 0x2000000; var_MarkTime1.Line = EXSCHEDULELib.LinesStyleEnum.exNoLines; var_MarkTime1.Label = "larger height"; var_MarkTime1.LabelAlign = EXSCHEDULELib.ContentAlignmentEnum.exBottomRight; axSchedule1.EndUpdate(); |
129 |
How I know what event was edited when it was edited by a user
// LayoutEndChanging event - Notifies your application once the control's layout has been changed. private void axSchedule1_LayoutEndChanging(object sender, AxEXSCHEDULELib._IScheduleEvents_LayoutEndChangingEvent e) { System.Diagnostics.Debug.Print( "End Operation exScheduleEditEvent(15)" ); System.Diagnostics.Debug.Print( e.operation.ToString() ); System.Diagnostics.Debug.Print( "Use the global member from LayoutStartChanging, and you got the Event being edited" ); } //this.axSchedule1.LayoutEndChanging += new AxEXSCHEDULELib._IScheduleEvents_LayoutEndChangingEventHandler(this.axSchedule1_LayoutEndChanging); // LayoutStartChanging event - Occurs when the control's layout is about to be changed. private void axSchedule1_LayoutStartChanging(object sender, AxEXSCHEDULELib._IScheduleEvents_LayoutStartChangingEvent e) { System.Diagnostics.Debug.Print( "Start Operation exScheduleEditEvent(15)" ); System.Diagnostics.Debug.Print( e.operation.ToString() ); System.Diagnostics.Debug.Print( "Holds the EventFromPoint to a global member" ); System.Diagnostics.Debug.Print( axSchedule1.get_EventFromPoint(-1,-1).ToString() ); } //this.axSchedule1.LayoutStartChanging += new AxEXSCHEDULELib._IScheduleEvents_LayoutStartChangingEventHandler(this.axSchedule1_LayoutStartChanging); axSchedule1.BeginUpdate(); axSchedule1.SelectEventStyle = EXSCHEDULELib.LinesStyleEnum.exLinesThicker | EXSCHEDULELib.LinesStyleEnum.exLinesSolid; axSchedule1.Calendar.Selection = Convert.ToDateTime("5/24/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("5/24/2012 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("5/24/2012 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Events.Add(Convert.ToDateTime("5/24/2012 10:45:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("5/24/2012 12:45:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); axSchedule1.EndUpdate(); |
128 |
What are timers in your exSchedule component
axSchedule1.BeginUpdate(); axSchedule1.Calendar.Selection = Convert.ToDateTime("5/24/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); EXSCHEDULELib.MarkTime var_MarkTime = axSchedule1.MarkTimes.Add("timer1",Convert.ToDateTime("5/24/2012 8:35:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_MarkTime.Label = "<fgcolor=808080>fixed timer"; var_MarkTime.LabelAlign = EXSCHEDULELib.ContentAlignmentEnum.exTopCenter; var_MarkTime.Pattern.Type = EXSCHEDULELib.PatternEnum.exPatternBDiagonal; var_MarkTime.Pattern.Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(224,224,224)); EXSCHEDULELib.MarkTime var_MarkTime1 = axSchedule1.MarkTimes.Add("timer2",Convert.ToDateTime("5/24/2012 10:51:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_MarkTime1.Label = "<fgcolor=00FF00>movable timer"; var_MarkTime1.Movable = true; var_MarkTime1.BodyEventBackColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(128,255,128)); var_MarkTime1.LineColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,240,15)); var_MarkTime1.TimeScaleLineColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0)); var_MarkTime1.TimeScaleLabel = ""; var_MarkTime1.Line = EXSCHEDULELib.LinesStyleEnum.exLinesThicker | EXSCHEDULELib.LinesStyleEnum.exLinesDash; var_MarkTime1.Label = "<bgcolor=FFFFFF><fgcolor=00FF00><b><%hh%>:<%nn%> <%AM/PM%><br><%loc_sdate%>"; var_MarkTime1.TimeScaleLine = EXSCHEDULELib.LinesStyleEnum.exLinesThick | EXSCHEDULELib.LinesStyleEnum.exLinesDot4; EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("5/24/2012 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("5/24/2012 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Events.Add(Convert.ToDateTime("5/24/2012 10:45:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("5/24/2012 12:45:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Events.Add(Convert.ToDateTime("5/24/2012 11:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("5/24/2012 14:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Events.Add(Convert.ToDateTime("5/24/2012 12:45:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("5/24/2012 15:45:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); axSchedule1.EndUpdate(); |
127 |
How do I get the selected dates in the calendar panel
// LayoutEndChanging event - Notifies your application once the control's layout has been changed. private void axSchedule1_LayoutEndChanging(object sender, AxEXSCHEDULELib._IScheduleEvents_LayoutEndChangingEvent e) { System.Diagnostics.Debug.Print( "Operation: exScheduleSelectionChange(10)" ); System.Diagnostics.Debug.Print( e.operation.ToString() ); System.Diagnostics.Debug.Print( "Selected Event Count:" ); System.Diagnostics.Debug.Print( axSchedule1.SelCount.ToString() ); System.Diagnostics.Debug.Print( "First Selected Event:" ); System.Diagnostics.Debug.Print( axSchedule1.get_SelEvent(0).ToString() ); } //this.axSchedule1.LayoutEndChanging += new AxEXSCHEDULELib._IScheduleEvents_LayoutEndChangingEventHandler(this.axSchedule1_LayoutEndChanging); axSchedule1.Calendar.Selection = Convert.ToDateTime("1/1/2011",System.Globalization.CultureInfo.GetCultureInfo("en-US")); EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("1/1/2011 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/1/2011 11:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Events.Add(Convert.ToDateTime("1/1/2011 11:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/1/2011 13:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); |
126 |
How do I get the selected dates in the calendar panel
// LayoutEndChanging event - Notifies your application once the control's layout has been changed. private void axSchedule1_LayoutEndChanging(object sender, AxEXSCHEDULELib._IScheduleEvents_LayoutEndChangingEvent e) { System.Diagnostics.Debug.Print( "Operation: exCalendarSelectionChange(1)" ); System.Diagnostics.Debug.Print( e.operation.ToString() ); EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; System.Diagnostics.Debug.Print( "Selected Date Count:" ); System.Diagnostics.Debug.Print( var_Calendar.SelCount.ToString() ); System.Diagnostics.Debug.Print( "First Selected Date:" ); System.Diagnostics.Debug.Print( var_Calendar.get_SelDate(0).ToString() ); } //this.axSchedule1.LayoutEndChanging += new AxEXSCHEDULELib._IScheduleEvents_LayoutEndChangingEventHandler(this.axSchedule1_LayoutEndChanging); |
125 |
What is the easiest way to display a picture on my event
axSchedule1.Calendar.Selection = Convert.ToDateTime("5/24/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); axSchedule1.Pictures.Add("pic1","c:\\exontrol\\images\\zipdisk.gif"); axSchedule1.Events.Add(Convert.ToDateTime("5/24/2012 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("5/24/2012 14:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).Pictures = "pic1"; |
124 |
How can I programmatically move a specified event
|
123 |
How can I edit the event but still display its margins
// AddEvent event - Notifies your application once the a new event is added. private void axSchedule1_AddEvent(object sender, AxEXSCHEDULELib._IScheduleEvents_AddEventEvent e) { // Ev.Editable = 1 } //this.axSchedule1.AddEvent += new AxEXSCHEDULELib._IScheduleEvents_AddEventEventHandler(this.axSchedule1_AddEvent); axSchedule1.SelectEventStyle = EXSCHEDULELib.LinesStyleEnum.exLinesSolid; axSchedule1.DefaultEventLongLabel = "<%=%256%><br><%=%5%>"; axSchedule1.DefaultEventShortLabel = axSchedule1.DefaultEventLongLabel; axSchedule1.Calendar.Selection = Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); axSchedule1.OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exCalendarAutoHide | EXSCHEDULELib.OnResizeControlEnum.exCalendarFit | EXSCHEDULELib.OnResizeControlEnum.exResizePanelRight; EXSCHEDULELib.Events var_Events = axSchedule1.Events; EXSCHEDULELib.Event var_Event = var_Events.Add(Convert.ToDateTime("1/10/2001 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 12:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Event.Editable = EXSCHEDULELib.EditableCaptionEnum.exEditCaption; var_Event.Caption = "your caption"; EXSCHEDULELib.Event var_Event1 = var_Events.Add(Convert.ToDateTime("1/10/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Event1.Editable = EXSCHEDULELib.EditableCaptionEnum.exEditCaption; var_Event1.Caption = "other caption"; |
122 |
How can I edit the events
// AddEvent event - Notifies your application once the a new event is added. private void axSchedule1_AddEvent(object sender, AxEXSCHEDULELib._IScheduleEvents_AddEventEvent e) { // Ev.Editable = 3 } //this.axSchedule1.AddEvent += new AxEXSCHEDULELib._IScheduleEvents_AddEventEventHandler(this.axSchedule1_AddEvent); axSchedule1.SelectEventStyle = EXSCHEDULELib.LinesStyleEnum.exLinesSolid; axSchedule1.DefaultEventLongLabel = ""; axSchedule1.DefaultEventShortLabel = ""; axSchedule1.CreateEventLabel = ""; axSchedule1.Calendar.Selection = Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); axSchedule1.OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exCalendarAutoHide | EXSCHEDULELib.OnResizeControlEnum.exCalendarFit | EXSCHEDULELib.OnResizeControlEnum.exResizePanelRight; EXSCHEDULELib.Events var_Events = axSchedule1.Events; EXSCHEDULELib.Event var_Event = var_Events.Add(Convert.ToDateTime("1/10/2001 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 12:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Event.Editable = EXSCHEDULELib.EditableCaptionEnum.exEditLongLabel; var_Event.LongLabel = "just your label"; EXSCHEDULELib.Event var_Event1 = var_Events.Add(Convert.ToDateTime("1/10/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Event1.Editable = EXSCHEDULELib.EditableCaptionEnum.exEditLongLabel; var_Event1.LongLabel = "just another label"; |
121 |
At the moment the scheduler only displays events from 8:00 am to 3:00 pm. How do I extend this time frame
axSchedule1.DayStartTime = "07:30"; axSchedule1.DayEndTime = "14:30"; |
120 |
How does localization work
EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.FirstWeekDay = var_Calendar.LocFirstWeekDay; var_Calendar.MonthNames = var_Calendar.LocMonthNames; var_Calendar.WeekDays = var_Calendar.LocWeekDays; var_Calendar.AMPM = var_Calendar.LocAMPM; |
119 |
Is it possible to limit the calendar to one month only
axSchedule1.ScrollBars = EXSCHEDULELib.ScrollBarsEnum.exNoScroll; axSchedule1.AllowMoveSchedule = EXSCHEDULELib.AllowKeysEnum.exDisallow; EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.Selection = Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Calendar.MinDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Calendar.MaxDate = Convert.ToDateTime("1/31/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); |
118 |
How can I display a distingue text for repetitive events
axSchedule1.SelectEventStyle = EXSCHEDULELib.LinesStyleEnum.exLinesSolid; axSchedule1.DefaultEventLongLabel = "<%=%256%><br><%=%264? `repetitive event`:``%>"; axSchedule1.DefaultEventShortLabel = axSchedule1.DefaultEventLongLabel; axSchedule1.Calendar.Selection = Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); axSchedule1.OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exCalendarAutoHide | EXSCHEDULELib.OnResizeControlEnum.exCalendarFit | EXSCHEDULELib.OnResizeControlEnum.exResizePanelRight; EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("1/10/2001 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 12:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).Repetitive = "weekday(value) = 3"; var_Events.Add(Convert.ToDateTime("1/10/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); |
117 |
How can I display the event's duration on the body of the event
axSchedule1.SelectEventStyle = EXSCHEDULELib.LinesStyleEnum.exLinesSolid; axSchedule1.DefaultEventLongLabel = "<%=%256%><br><%=((1:=int(0:= (date(%2)-date(%1)))) != 0 ? (=:1 + ' day(s)') : '') + (=:1 ? ' ' : '' ) + ((1:=int(0:=((=:0 - =:1" + " + 1/24/60/60/2)*24))) != 0 ? =:1 + ' hour(s)' : '' ) + (=:1 ? ' ' : '' ) + ((1:=round((=:0 - =:1)*60)) != 0 ? =:1 + ' min(s)' :" + " '')%>"; axSchedule1.DefaultEventShortLabel = axSchedule1.DefaultEventLongLabel; axSchedule1.Calendar.Selection = Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); axSchedule1.OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exCalendarAutoHide | EXSCHEDULELib.OnResizeControlEnum.exCalendarFit | EXSCHEDULELib.OnResizeControlEnum.exResizePanelRight; EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("1/10/2001 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 12:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Events.Add(Convert.ToDateTime("1/10/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); |
116 |
The sample shows how the event's body can display automatically the UserData property of the event
axSchedule1.SelectEventStyle = EXSCHEDULELib.LinesStyleEnum.exLinesSolid; axSchedule1.DefaultEventLongLabel = "<%=%256%><br><%=%6%>"; axSchedule1.DefaultEventShortLabel = axSchedule1.DefaultEventLongLabel; axSchedule1.Calendar.Selection = Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); axSchedule1.OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exCalendarAutoHide | EXSCHEDULELib.OnResizeControlEnum.exCalendarFit | EXSCHEDULELib.OnResizeControlEnum.exResizePanelRight; EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("1/10/2001 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 12:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).UserData = "UserData 1"; var_Events.Add(Convert.ToDateTime("1/10/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).UserData = "UserData 2"; |
115 |
The sample shows how the event's body can display automatically the Caption property of the event
axSchedule1.SelectEventStyle = EXSCHEDULELib.LinesStyleEnum.exLinesSolid; axSchedule1.DefaultEventLongLabel = "<%=%256%><br><%=%5%>"; axSchedule1.DefaultEventShortLabel = axSchedule1.DefaultEventLongLabel; axSchedule1.Calendar.Selection = Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); axSchedule1.OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exCalendarAutoHide | EXSCHEDULELib.OnResizeControlEnum.exCalendarFit | EXSCHEDULELib.OnResizeControlEnum.exResizePanelRight; EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("1/10/2001 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 12:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).Caption = "Event 1"; var_Events.Add(Convert.ToDateTime("1/10/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).Caption = "Event 2"; |
114 |
The sample shows how the event's body can display automatically the group's ID, Caption and Title
axSchedule1.SelectEventStyle = EXSCHEDULELib.LinesStyleEnum.exLinesSolid; axSchedule1.DefaultEventLongLabel = "Group's ID:<%=%4%><br>Group's Caption: <%=%262%><br>Group's Title: <%=%263%><br><%=%256%>"; axSchedule1.DefaultEventShortLabel = axSchedule1.DefaultEventLongLabel; axSchedule1.Calendar.Selection = Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); axSchedule1.DisplayGroupingButton = true; axSchedule1.ShowGroupingEvents = true; axSchedule1.OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exCalendarAutoHide | EXSCHEDULELib.OnResizeControlEnum.exCalendarFit | EXSCHEDULELib.OnResizeControlEnum.exResizePanelRight; EXSCHEDULELib.Groups var_Groups = axSchedule1.Groups; EXSCHEDULELib.Group var_Group = var_Groups.Add(1,"Group 1"); var_Group.Title = "First"; var_Group.Visible = true; EXSCHEDULELib.Group var_Group1 = var_Groups.Add(2,"Group 2"); var_Group1.Title = "Second"; var_Group1.Visible = true; EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("1/10/2001 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 12:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).GroupID = 1; var_Events.Add(Convert.ToDateTime("1/10/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).GroupID = 2; |
113 |
The following sample displays automatically an "All-Day-Event: " prefix for AllDayEvent events
|
112 |
How can I use the calendar's LongTimeFormat
|
111 |
How can I use the calendar's ShortTimeFormat. The sample displays the times in 24-hours format
axSchedule1.SelectEventStyle = EXSCHEDULELib.LinesStyleEnum.exLinesSolid; axSchedule1.DefaultEventLongLabel = "<%=%256%>"; axSchedule1.DefaultEventShortLabel = "<%=%256%>"; axSchedule1.TimeScales[0].MajorTimeLabel = "<%hh%>:<%nn%>"; EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.Selection = Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Calendar.ShortTimeFormat = "<%h%>:<%nn%>"; axSchedule1.OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exCalendarAutoHide | EXSCHEDULELib.OnResizeControlEnum.exCalendarFit | EXSCHEDULELib.OnResizeControlEnum.exResizePanelRight; axSchedule1.Events.Add(Convert.ToDateTime("1/10/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); |
110 |
How can I use the calendar's ShortDateFormat
axSchedule1.SelectEventStyle = EXSCHEDULELib.LinesStyleEnum.exLinesSolid; axSchedule1.DefaultEventLongLabel = "<%=%256%>"; axSchedule1.DefaultEventShortLabel = "<%=%256%>"; EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.Selection = Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Calendar.ShortDateFormat = "<%loc_d2%>, <%loc_m2%> <%d%>, <%yy%>"; axSchedule1.OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exCalendarAutoHide | EXSCHEDULELib.OnResizeControlEnum.exCalendarFit | EXSCHEDULELib.OnResizeControlEnum.exResizePanelRight; axSchedule1.Events.Add(Convert.ToDateTime("1/10/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).AllDayEvent = true; |
109 |
How can I use the calendar's LongDateFormat
axSchedule1.SelectEventStyle = EXSCHEDULELib.LinesStyleEnum.exLinesSolid; axSchedule1.DefaultEventLongLabel = "<%=%257%>"; axSchedule1.DefaultEventShortLabel = "<%=%257%>"; EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.Selection = Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Calendar.LongDateFormat = "<%loc_dddd%>, <%loc_mmm%> <%d%>, <%yyyy%>"; axSchedule1.OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exCalendarAutoHide | EXSCHEDULELib.OnResizeControlEnum.exCalendarFit | EXSCHEDULELib.OnResizeControlEnum.exResizePanelRight; axSchedule1.Events.Add(Convert.ToDateTime("1/10/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).AllDayEvent = true; |
108 |
Is it possible to prevent updating events
axSchedule1.SelectEventStyle = EXSCHEDULELib.LinesStyleEnum.exLinesSolid; axSchedule1.AllowUpdateDisableZone = false; EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.ShowNonMonthDays = false; var_Calendar.Selection = Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Calendar.DisableZoneFormat = "value >= #1/11/2001#"; var_Calendar.MinDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); EXSCHEDULELib.Events var_Events = axSchedule1.Events; var_Events.Add(Convert.ToDateTime("1/10/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Events.Add(Convert.ToDateTime("1/11/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); |
107 |
How can I specify that after editing the caption should be on top ( method 2 )
axSchedule1.DefaultEventLongLabel = ""; axSchedule1.DefaultEventShortLabel = axSchedule1.DefaultEventLongLabel; axSchedule1.SelectEventStyle = EXSCHEDULELib.LinesStyleEnum.exLinesSolid; EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.ShowNonMonthDays = false; var_Calendar.Selection = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); EXSCHEDULELib.Events var_Events = axSchedule1.Events; EXSCHEDULELib.Event var_Event = var_Events.Add(Convert.ToDateTime("1/1/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/1/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Event.ExtraLabel = "title"; var_Event.ExtraLabelAlign = EXSCHEDULELib.ContentAlignmentEnum.exTopLeft; |
106 |
How can I specify that after editing the caption should be on top ( method 1 )
axSchedule1.DefaultEventLongLabel = ""; axSchedule1.DefaultEventShortLabel = axSchedule1.DefaultEventLongLabel; axSchedule1.SelectEventStyle = EXSCHEDULELib.LinesStyleEnum.exLinesSolid; EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.ShowNonMonthDays = false; var_Calendar.Selection = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); EXSCHEDULELib.Events var_Events = axSchedule1.Events; EXSCHEDULELib.Event var_Event = var_Events.Add(Convert.ToDateTime("1/1/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/1/2001 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Event.LongLabel = "title"; var_Event.Editable = EXSCHEDULELib.EditableCaptionEnum.exEditLongLabel; |
105 |
How can I get ride or hide the of the calendar's grid lines
|
104 |
How can I programmatically select a single date ( method 2 )
|
103 |
How can I programmatically select a single date ( method 1 )
EXSCHEDULELib.Calendar var_Calendar = axSchedule1.Calendar; var_Calendar.Selection = "0"; var_Calendar.set_SelectDate(Convert.ToDateTime("1/1/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")),true); |
102 |
How can I prevent showing the Today button, in the calendar panel
|
101 |
How can I display just the calendar panel, not including the schedule panel
|